package com.codi.bus.core.dao.impl;

import com.codi.base.dao.v2.GeneratedBaseDaoImpl;
import com.codi.bus.core.dao.PortfolioTradeDao;
import com.codi.bus.core.dao.UserAssetsDao;
import com.codi.bus.core.domain.PortfolioTrade;
import com.codi.bus.core.domain.UserAssets;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * Created by asus on 2017/12/6.
 */
@Repository("userAssetsDao")
public class UserAssetsDaoImpl extends GeneratedBaseDaoImpl<UserAssets> implements UserAssetsDao {
    @Override
    //@Options(useGeneratedKeys = true, keyProperty = "userAssets.uaAssetsId")
    public Long insertByCode( UserAssets userAssets) {
        super.insert(this.generateStatement("insert"), userAssets);
        return userAssets.getUaAssetsId();
    }

}
